package com.hey.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @ClassName ProductConfig
 * @Author hey
 * @Date 2018/11/12 15:40
 **/
@Data
@Component
@ConfigurationProperties("product")
@RefreshScope
public class ProductConfig {
    private String productName;
    private int productNumber;
}
